<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加项目</title>
    <link rel="shortcut icon" type="image/x-icon" href="${pageContext.request.contextPath}/favicon.ico"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/layui.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/common.css">


    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/extend/dtree.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/extend/font/dtreefont.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/extend/formSelects-v4.css">
</head>
<body>

<div class="yadmin-body animated fadeIn">
    <form action="" method="post" class="layui-form layui-form-pane">

        <div class="layui-form-item">
            <label for="projectName" class="layui-form-label">
                项目编号
            </label>
            <div class="layui-input-block">
                <input type="text" id="projectId" name="projectId"
                       lay-verify="required" lay-vertype="tips"
                       autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="leader" class="layui-form-label">
                项目负责人
            </label>
            <div class="layui-input-block">
                <input type="text" id="leader" name="leader" value=""
                       lay-verify="required" lay-vertype="tips"
                       autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="projectName" class="layui-form-label">
                项目名称
            </label>
            <div class="layui-input-block">
                <input type="text" id="projectName" name="projectName"
                       lay-verify="required" lay-vertype="tips"
                       autocomplete="off" class="layui-input">
            </div>
        </div>

<!--        <div class="layui-inline">-->
<!--            <label class="layui-form-label">立项时间</label>-->
<!--            <div class="layui-input-inline">-->
<!--                <input type="text" class="layui-input" id="test5" placeholder="yyyy-MM-dd HH:mm:ss">-->
<!--            </div>-->
<!--        </div>-->
        <div class="layui-form-item">
            <label for="detail" class="layui-form-label">
                项目概述
            </label>
            <div class="layui-input-block">
                <input type="text" id="detail" name="detail"
                       lay-verify="required" lay-vertype="tips"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block" style="margin-left:0;text-align:center;">
                <input type="hidden" id="deptId" name="deptId" value="">
                <input type="hidden" id="userId" name="userId" value="">
                <button class="layui-btn layui-btn-normal btn-w100" lay-submit="" lay-filter="add">增加</button>
            </div>
        </div>
    </form>
</div>
<script src="${pageContext.request.contextPath}/js/jquery.js"></script>
<script src="${pageContext.request.contextPath}/layui/layui.js"></script>
<script src="${pageContext.request.contextPath}/js/common.js"></script>

<script>
    var trueName = '${user.trueName}';
    var userId = '${user.id}';
    console.log(trueName);
    console.log(userId);
</script>

<script src="${pageContext.request.contextPath}/js/project/add.js"></script>

</body>
</html>